package com.ashley.staticfield;

public class Test {

	public static void main(String[] args) {
		System.out.println(StaticFiledClass.age);

		NonStaticFiledClass n1 = new NonStaticFiledClass();
		System.out.println(n1.getAge());
		System.out.println(n1.hashCode());
		System.out.println(n1.hashCode());
		
		NonStaticFiledClass n3 = n1;
		System.out.println(n3.hashCode());

		NonStaticFiledClass n2 = new NonStaticFiledClass();
		n2.setAge(12);
		System.out.println(n2.getAge());
		System.out.println(n2.hashCode());

//		NonStaticFiledClass n3 = null;
//		System.out.println(n3.getAge());

	}
}